/*
 * Copyright (c) 2025 GuoKaiHong (Shenzhen) Technology Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


export default class IDCardUtil {
  public static parseNation(code: string): string {
    let nation: string = "";
    switch (code) {
      case "01":
        nation = "汉族";
        break;
      case "02":
        nation = "蒙古族";
        break;
      case "03":
        nation = "回族";
        break;
      case "04":
        nation = "藏族";
        break;
      case "05":
        nation = "维吾尔族";
        break;
      case "06":
        nation = "苗族";
        break;
      case "07":
        nation = "彝族";
        break;
      case "08":
        nation = "壮族";
        break;
      case "09":
        nation = "布依族";
        break;
      case "10":
        nation = "朝鲜族";
        break;
      case "11":
        nation = "满族";
        break;
      case "12":
        nation = "侗族";
        break;
      case "13":
        nation = "瑶族";
        break;
      case "14":
        nation = "白族";
        break;
      case "15":
        nation = "土家族";
        break;
      case "16":
        nation = "哈尼族";
        break;
      case "17":
        nation = "哈萨克族";
        break;
      case "18":
        nation = "傣族";
        break;
      case "19":
        nation = "黎族";
        break;
      case "20":
        nation = "僳僳族";
        break;
      case "21":
        nation = "佤族";
        break;
      case "22":
        nation = "畲族";
        break;
      case "23":
        nation = "高山族";
        break;
      case "24":
        nation = "拉祜族";
        break;
      case "25":
        nation = "水族";
        break;
      case "26":
        nation = "东乡族";
        break;
      case "27":
        nation = "纳西族";
        break;
      case "28":
        nation = "景颇族";
        break;
      case "29":
        nation = "柯尔克孜族";
        break;
      case "30":
        nation = "土族";
        break;
      case "31":
        nation = "达斡尔族";
        break;
      case "32":
        nation = "仫佬族";
        break;
      case "33":
        nation = "羌族";
        break;
      case "34":
        nation = "布朗族";
        break;
      case "35":
        nation = "撒拉族";
        break;
      case "36":
        nation = "毛难族";
        break;
      case "37":
        nation = "仡佬族";
        break;
      case "38":
        nation = "锡伯族";
        break;
      case "39":
        nation = "阿昌族";
        break;
      case "40":
        nation = "普米族";
        break;
      case "41":
        nation = "塔吉克族";
        break;
      case "42":
        nation = "怒族";
        break;
      case "43":
        nation = "乌孜别克族";
        break;
      case "44":
        nation = "俄罗斯族";
        break;
      case "45":
        nation = "鄂温克族";
        break;
      case "46":
        nation = "崩龙族";
        break;
      case "47":
        nation = "保安族";
        break;
      case "48":
        nation = "裕固族";
        break;
      case "49":
        nation = "京族";
        break;
      case "50":
        nation = "塔塔尔族";
        break;
      case "51":
        nation = "独龙族";
        break;
      case "52":
        nation = "鄂伦春族";
        break;
      case "53":
        nation = "赫哲族";
        break;
      case "54":
        nation = "门巴族";
        break;
      case "55":
        nation = "珞巴族";
        break;
      case "56":
        nation = "基诺族";
        break;


    }
    return nation;
  }
}